﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Algobox.JuicyLib.MarketData.Structure
{
    public class Split
    {

        /// <summary>
        /// Create a stock split
        /// </summary>
        /// <param name="recieves"></param>
        /// <param name="from"></param>
        public Split(string symbol, DateTime date, int recieves, int from)
        {
            Symbol = symbol;
            Date = date;
            Recieves = recieves;
            From = from;
        }


        public DateTime Date { get; set; }
        public string Symbol { get; set; }
        public int Recieves { get; set; }
        public int From { get; set; }


        public override string ToString()
        {
            return String.Format("{0} {1:yyyyMMdd} {2}:{3}", Symbol, Date, Recieves, From);
        }

    }
}
